<!DOCTYPE html>
<html lang="zh">
    <head></head>
    <body class="hold-transition sidebar-mini">
        <div class="wrapper">
            <nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom"></nav>
            <aside class="main-sidebar sidebar-dark-primary elevation-4"></aside>
            <div class="content-wrapper">
                <div class="content-header">
                    <div class="container-fluid"></div>
                </div>
                <div id="content-panel" class="content">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-4">
                                <div class="card card-primary card-outline">
                                    <div class="card-header">
                                        <h3 class="card-title">站点信息</h3>
                                    </div> <!-- /.card-body -->
                                    <div class="card-body">
                                        <form role="form" id="websiteForm">
                                            <!-- text input -->
                                            <div class="form-group">
                                                <label>站点名称</label>
                                                <input type="text" class="form-control" id="websiteName"
                                                       name="websiteName"
                                                       placeholder="站点名称">
                                            </div>
                                            <div class="form-group">
                                                <label>站点描述</label>
                                                <input type="text" class="form-control" id="websiteDescription"
                                                       name="websiteDescription"
                                                       placeholder="站点描述">
                                            </div>
                                            <div class="form-group">
                                                <label>站点Logo</label>
                                                <input type="text" class="form-control" id="websiteIcon"
                                                       name="websiteIcon"
                                                       placeholder="站点Logo">
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label">底部备案号</label>
                                                <input type="text" class="form-control" id="footerICP" name="footerICP"
                                                       placeholder="备案号">
                                            </div>
                                            <div class="card-footer">
                                                <button type="button" id="updateWebsiteButton" onsubmit="return false;"
                                                        onclick="editWebsiteInfo()" class="btn btn-danger float-right">
                                                    确认修改
                                                </button>
                                            </div>
                                        </form>
                                    </div><!-- /.card-body -->
                                </div>
                            </div>

                            <div class="col-md-4">
                                <div class="card card-primary card-outline">
                                    <div class="card-header">
                                        <h3 class="card-title">个人信息</h3>
                                    </div>
                                    <div class="card-body">
                                        <form role="form" id="userInfoForm">
                                            <div class="form-group">
                                                <label class="control-label">个人头像</label>
                                                <input type="text" class="form-control" id="yourAvatar"
                                                       name="yourAvatar"
                                                       placeholder="个人头像">
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label">个人名称</label>
                                                <input type="text" class="form-control" id="yourName"
                                                       name="yourName"
                                                       placeholder="个人名称">
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label">个人邮箱</label>
                                                <input type="email" class="form-control" id="yourEmail" name="yourEmail"
                                                       placeholder="个人邮箱">
                                            </div>
                                            <div class="card-footer">
                                                <button type="button" id="updateUserInfoButton" onsubmit="return false;"
                                                        onclick="editUserInfo()" class="btn btn-danger float-right">确认修改
                                                </button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-4">
                                <div class="card card-primary card-outline">
                                    <div class="card-header">
                                        <h3 class="card-title">管理员信息</h3>
                                    </div>
                                    <div class="card-body">
                                        <form role="form" id="userNameForm">
                                            <div class="form-group">
                                                <label>登陆名称</label>
                                                <input type="text" class="form-control" id="loginUserName"
                                                       name="loginUserName"
                                                       placeholder="请输入登陆名称" required="required">
                                            </div>
                                            <div class="form-group">
                                                <label>昵称</label>
                                                <input type="text" class="form-control" id="nickName"
                                                       name="nickName"
                                                       placeholder="请输入昵称" required="true">
                                            </div>
                                            <div class="card-footer">
                                                <button type="button" onsubmit="return false;"
                                                        onclick="editLoginInfo()" class="btn btn-danger float-right">
                                                    确认修改
                                                </button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-4">
                                <div class="card card-primary card-outline">
                                    <div class="card-header">
                                        <h3 class="card-title">修改密码</h3>
                                    </div> <!-- /.card-body -->
                                    <div class="card-body">
                                        <form role="form" id="userPasswordForm">
                                            <div class="form-group col-sm-8">
                                                <div class="alert alert-danger updatePassword-info"
                                                     id="updatePassword-info" style="display: none;"></div>
                                            </div>
                                            <!-- input states -->
                                            <div class="form-group">
                                                <label class="control-label"><i class="fa fa-key"></i> 原密码</label>
                                                <input type="password" class="form-control" id="originalPassword"
                                                       name="originalPassword"
                                                       placeholder="请输入原密码" required="true">
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label"><i class="fa fa-key"></i> 新密码</label>
                                                <input type="password" class="form-control" id="newPassword"
                                                       name="newPassword"
                                                       placeholder="请输入新密码" required="true">
                                            </div>
                                            <div class="card-footer">
                                                <button type="button" onsubmit="return false;"
                                                        onclick="editPassword()" class="btn btn-danger float-right">确认修改
                                                </button>
                                            </div>
                                        </form>
                                    </div><!-- /.card-body -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <footer class="main-footer"></footer>
        </div>
        <script src="/admin/plugins/jquery.min.js"></script>

        <script src="/admin/plugins/js.cookie.min.js"></script>

        <script src="/admin/plugins/jquery-ui.min.js"></script>

        <script src="/admin/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>

        <script src="/admin/plugins/adminlte/adminlte.min.js"></script>
        <script src="/admin/plugins/layer/layer.js"></script>
        <script src="/admin/dist/js/base.js"></script>

        <script>
            $(function () {
                // 加载head标签内容
                $("head").load("/admin/templates/head.html");
                $("nav").load("/admin/templates/navigation.html");
                $("aside").load("/admin/templates/sidebar.html", function () {
                    let name = Cookies.get("nickName");
                    $("#userNick").text(name);
                    clearActive();
                    $("#ul-item-7").attr("class", "nav-link active");
                });
                $("footer").load("/admin/templates/footer.html");
                getConfigurationPageInfo();
            });
        </script>
    </body>
</html>